package cn.changein.framework.modular.system.service;

import cn.changein.framework.modular.system.entity.OperationLog;
import cn.changein.framework.modular.system.mapper.OperationLogMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 操作日志 服务实现类
 * 

 * @date: 2020-02-20
 * @copyright: 广州澄境科技有限公司
 */
@Service
public class OperationLogService extends ServiceImpl<OperationLogMapper, OperationLog> {

    /**
     * 获取操作日志列表
     * @param page
     * @param beginTime
     * @param endTime
     * @param logName
     * @param logType
     * @param userId
     * @return
     */
    public List<Map<String, Object>> getOperationLogs(Page page, String beginTime, String endTime, String logName, String logType,Long userId) {
        return this.baseMapper.getOperationLogs(page, beginTime, endTime, logName, logType,userId);
    }

}
